-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow up #3367 to improve run_future
#3847
Conversation
To complete the context, this is a separate concern that @wtdcode has expressed to me in a DM right after #3367 (comment) having worked on the very same functionality in https://github.com/bluealloy/revm/blob/6d5256eaa9212e17da5a9fd8e9131fc85a0e7ad9/crates/revm/src/db/ethersdb.rs#L35-L63. In particular, the current implementation of this function relies on the fact that Line 147 in 3ba08da
rustup/rustup-macros/src/lib.rs Lines 115 to 119 in 3ba08da
This PR tries to document more caveats on this point and cause |
Hmmm -- IMO we should just remove all uses of |
@djc Yes, that's the end goal for us, but looking at the removal of |
Not sure how/why those are related to this issue? |
@djc Those are two examples of a transient state ended up remaining much longer than originally expected (x_x), I mean it would be perfect if this time it ends sooner, but still I think this PR would be a nice addition for the moment being even if the lines it adds end up being deleted in months. |
To ask the question differently: why do you think we need to keep |
@djc I think we can agree that this is a temporary scaffolding function before we make the full async transition, as previously explained pretty clearly in #3367 (comment):
Apart from the signature generalization (which you might argue as some form of premature optimization), this PR is actually mostly documenting this function's limitations (multithread runtime only, and a limit of 512 for blocking threads), so that one might get some clue about a potential misuse. I was not saying that I wish the transient state would last long... Actually I wish it could end today. But maybe I'm being overly cautious? |
I think run_future is very close to gone right? I didn't actually intend to leave it in the migration to an async runtime. |
Following up #3367 to slightly improve the
run_future
utils and add a few caveats. It gets merged before I'm trying to add my reviews so here is the separate PR.